import React from 'react';

import {
    Dialog
} from './../components';

import UpgradePage from './../views/iap/upgrade';

//购买升级
export const buyMember = () => (
    new Promise((resolve) => {
        const content = (
            <UpgradePage
                onSuccess={resolve}
            />
        )
        Dialog.show(content,{
            maskOpacity:.8,
            clickClose:true,
            direction:`center`
        })
    })
)
